/**   
* @{#} FuncNode.java Create on 2013-8-12 上午8:28:30   
*   
* Copyright (c) 2012 by Baidu.   
*/
package objtable.engine.xmlnode;

import objtable.core.TableCenter;
import objtable.engine.ExeNode;
import objtable.engine.xmlnode.gen.Filter;

/**   
* @author <a href="mailto:zhangbo07@baidu.com">zhangbo07</a>  
* @version 1.0   
*/
public class FilterNode extends ExeNode {
	private Filter filter;

	public Filter getFilter() {
		return filter;
	}

	public void setFilter(Filter filter) {
		this.filter = filter;
	}

	@Override
	public void exeNode() {
		TableCenter.putTable(filter.getTableafter(),
				TableCenter.getTable(filter.getTablefrom()));
		TableCenter.putTableData(
				filter.getTableafter(),
				TableCenter.filterTableData(filter.getTablefrom(),
						filter.getCondition()));
	}
}
